<!--#include file="lib/utf-8.asp"-->
<!--#include file="lib/connopen.asp"-->
<!--#include file="lib/asp-common-lib.asp"-->
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>报关单登记系统</title>
<!--#include file="lib/plugins.asp"-->
<!--#include file="lib/js-google-analytics.asp"-->
<style type="text/css">
	.ui-datepicker table {
		border: 0;
	}
	#col3{
		font-size:14px;
	}
</style>
</head>
<%
If Not CheckFlag(session("aaPostFlag"),1) Then Call JumpErrorPage(2)
%>
<body>
<!--#include file="lib/header.asp"-->
<!--#include file="lib/nav.asp"-->
<div id="main">

<!--#include file="lib/col1.asp"-->
<!--#include file="lib/col2.asp"-->
    <div id="col3" role="main">
        <div id="col3_content" class="clearfix">
      <%if CheckEmployee() then%>
          <h3>报关系统更新历史</h3>
          <%
            Set rs = Server.CreateObject("ADODB.Recordset")
            sql = "SELECT *  FROM ul where ul_post=0 or ( ul_post=1 and ul_date>=dateadd('d',-3,date())) order by ul_date desc,ul_post asc,id desc"
            rs.Open sql,conn,1,1
            str=""
            t_date=""
            if not rs.eof then str_end="</ol></li></ul></div>" else str_end=""
            do while not rs.eof
              select case rs("ul_post")
                case 0 ul_post="系统"
                case 1 ul_post="同步"
              end select
              if rs("ul_date")<>t_date then 
                t_post=-1
                if t_date<>"" then str=str&"</ul></div>"
                str=str&"<div><h4>"&rs("ul_date")&"</h4><ul>"
                t_date=rs("ul_date")
              end if
              if rs("ul_post")<>t_post then
                if t_post<>-1 then str=str&"</ol></li>"
                str=str&"<li>"&ul_post&"<ol>"
                t_post=rs("ul_post")
              end if
              str=str&"<li>"&rs("ul_cont")&"</li>"
              rs.movenext
            loop
            str=str&str_end
            response.write(str)
            rs.close
            set rs=nothing
          %>
      <%end if%>
    </div>
</div>
<!--#include file="lib/footer.asp"-->
</body>
</html>
<!--#include file="lib/connclose.asp"-->

